import request from '@/utils/request'

const api_name = '/lineage'
export default {
  getLineage(tableName) {
    return request({
      url: `${api_name}/query/${tableName}`,
      method: 'get'
    })
  },
  refresh() {
    return request({
      url: `${api_name}/refresh`,
      method: 'get'
    })
  }
}
